<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String realPath = this.getServletContext().getContextPath();
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加文章</title>
<script src="http://tinymce.cachefly.net/4.1/tinymce.min.js"></script>
<script src="<%=realPath%>/resources/js/tinymce/langs/zh_CN.js"></script>
<script type="text/javascript"
	src="<%=realPath%>/resources/js/web/article/add.js">
</script>
<jsp:include page='<%="/header"%>' />
</head>
<body style="top: 200px; position: absolute;">
	<form action="" method="post">
		${formError.message } <input name="title" value="${info.title }">
		<textarea name="articleContent.content">${info.articleContent.content }</textarea>
		选择类别：<select name="type.typeId">
			<jstl:forEach items="${types }" var="type">
				<option value="${type.typeId }">${type.title }</option>
			</jstl:forEach>
		</select> <br />选择标签：
		<jstl:forEach items="${lables }" var="lable" varStatus="status">
		${lable.title }<input type="checkbox"
				name="lables[${status.index }].lableId" value="${lable.lableId }" />
		</jstl:forEach>
		<input type="submit" value="提交" />
	</form>
	<jsp:include page='<%="/footer"%>' />
</body>
</html>